package com.test;

import java.util.Arrays;
import java.util.List;

public class IteratorList {

    public static void main(String[] args) {
        //java.util.function.Supplier;
        //java.util.function.Function;
        //java.util.function.Consumer;

        List<Integer> list = Arrays.asList(1,2,3,4,5,6);
        list.forEach(System.out::println);
        //int size = list.size();
        /*for (int i=0;i<size;i++){
            System.out.println(list.get(i));
        }

        for (Integer j:list){
            System.out.println(j);
        }*/



    }
}
